@if ($topics!=null && count($topics))

    <ul class="list-group">
        @foreach ($topics as $topic)
            <li class="list-group-item">
                {{--<a href="{{ route('categories.show', $topic->forumCategory->id) }}">--}}
                    <a href="{{ Request::url() }}?feeds=topics&forumCategory={{ $topic->forumCategory->id}}">
                    <img src="{{ $topic->forumCategory->icon }}" width="28" />

                </a>
                <a href="{{ $topic->link() }}">
                    {{ getTitleFormMbSubstr($topic->title) }}
                </a>
                <span class="meta pull-right">
                {{ $topic->reply_count }} 回复
                <span> ⋅ </span>
                    {{ $topic->created_at->diffForHumans() }}
            </span>
            </li>
        @endforeach
    </ul>

    {{-- 分页 --}}
    <div class="text-left">
         &nbsp;  &nbsp; {!! $topics->appends(['feeds' => 'topics','forumCategory'=>isset($category_id)?$category_id:0])->links() !!}
    </div>
@else
    <div class="empty-block">暂无数据 ~_~ </div>
@endif
